                	<div class="smallBox">
                    
                    <?php if (!isLoggedIn()) { ?>
                    
                    <div class="userChoice">
                    	<a id="userReg">New user</a>
                        <a id="userLog" class="aktivnoDugme">Log in</a>
                    </div>
                    	<form id="userRegister" action="components/register.php" method="post">
                            <p>Create a new account:</p>
                            <label for="userName">Username: <input name="userName" class="userName" id="userName" type="text" /></label>
                            <label for="userTeam">Team Name: <input name="userTeam" id="userTeam" type="text" /></label>
                            <label for="userPassword">Password: <input name="userPassword" id="userPassword" type="password" /></label>
                            <input class="addButton" type="submit" value="Register" />
                        </form>
                        
                    	<form id="userLogin" action="components/login.php" method="post">
                            <p>Sign in:</p>
                            <label for="userName">Username: <input name="userName" class="userName" id="userName" type="text" /></label>
                            <label for="userPassword">Password: <input name="userPassword" id="userPassword" type="password" /></label>
                            <input class="addButton" type="submit" value="Log in" />
                        </form>
                        
                    <?php } else  { ?>
                        
                        <?php $u = new User($_SESSION['bl_user_id']); ?>
                        <div class="transfersTop">Welcome, <?= $u->ime; ?></div>
                        <ul>
                        	<li><a href="components/logout.php">Logout</a></li>
                        	<li><a href="<?= $settings->base; ?>/fantasy">Manage Fantasy Team</a></li>
                        	<li><a href="<?= $settings->base; ?>/prediction">Prediction Game</a></li>
                        </ul>
                        
                    <?php } ?>
                        
                    
                    </div>
                    <h3 class="smallBoxTitle"><a href="#">User</a></h3>
